package com.xiaoye.qbproject.service;

import com.xiaoye.qbproject.domain.QbSubject;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author Administrator
 * @description 针对表【QB_SUBJECT(情报专题)】的数据库操作Service
 * @createDate 2025-01-14 19:28:41
 */
public interface QbSubjectService extends IService<QbSubject> {

    /**
     * @param qbSubject
     * @param request
     * @description: 情报专题列表 包含是否订阅
     * @author: ChenYao
     * @return: java.util.List<com.xiaoye.qbproject.domain.QbSubject>
     * @ceateDate: 2025/1/14 下午10:58
     */

    List<QbSubject> getSubjectListAndSub(QbSubject qbSubject, HttpServletRequest request);

    /**
     * @param list
     * @description: 情报专题删除
     * @author: ChenYao
     * @return: void
     * @ceateDate: 2025/1/15 下午5:02
     */

    void delSubject(List<String> list);

    /**
     * @param qbSubject
     * @param request
     * @description: 获取我的订阅专题列表
     * @author: ChenYao
     * @return: java.util.List<com.xiaoye.qbproject.domain.QbSubject>
     * @ceateDate: 2025/1/15 下午5:07
     */

    List<QbSubject> getMySubscriptionSubjectList(QbSubject qbSubject, HttpServletRequest request);

    int editSubject(QbSubject qbSubject);
}
